package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class AdminChef implements Serializable {
    private String acno;

    private String cno;

    private String ano;

    private Date actime;

    private String cstate;

    private Date acdate;

    private static final long serialVersionUID = 1L;

    public String getAcno() {
        return acno;
    }

    public void setAcno(String acno) {
        this.acno = acno;
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getAno() {
        return ano;
    }

    public void setAno(String ano) {
        this.ano = ano;
    }

    public Date getActime() {
        return actime;
    }

    public void setActime(Date actime) {
        this.actime = actime;
    }

    public String getCstate() {
        return cstate;
    }

    public void setCstate(String cstate) {
        this.cstate = cstate;
    }

    public Date getAcdate() {
        return acdate;
    }

    public void setAcdate(Date acdate) {
        this.acdate = acdate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AdminChef other = (AdminChef) that;
        return (this.getAcno() == null ? other.getAcno() == null : this.getAcno().equals(other.getAcno()))
            && (this.getCno() == null ? other.getCno() == null : this.getCno().equals(other.getCno()))
            && (this.getAno() == null ? other.getAno() == null : this.getAno().equals(other.getAno()))
            && (this.getActime() == null ? other.getActime() == null : this.getActime().equals(other.getActime()))
            && (this.getCstate() == null ? other.getCstate() == null : this.getCstate().equals(other.getCstate()))
            && (this.getAcdate() == null ? other.getAcdate() == null : this.getAcdate().equals(other.getAcdate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAcno() == null) ? 0 : getAcno().hashCode());
        result = prime * result + ((getCno() == null) ? 0 : getCno().hashCode());
        result = prime * result + ((getAno() == null) ? 0 : getAno().hashCode());
        result = prime * result + ((getActime() == null) ? 0 : getActime().hashCode());
        result = prime * result + ((getCstate() == null) ? 0 : getCstate().hashCode());
        result = prime * result + ((getAcdate() == null) ? 0 : getAcdate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", acno=").append(acno);
        sb.append(", cno=").append(cno);
        sb.append(", ano=").append(ano);
        sb.append(", actime=").append(actime);
        sb.append(", cstate=").append(cstate);
        sb.append(", acdate=").append(acdate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}